#ifndef RECORDFORM_H
#define RECORDFORM_H

#include <QWidget>

namespace Ui {
class RecordForm;
}

class RecordForm : public QWidget
{
    Q_OBJECT
    
public:
    RecordForm(QWidget *parent = 0);
    ~RecordForm();


    void morph2AddRecordForm(const int id);

    void morph2ChangeRecordForm(const int id, QString name, const int styleId, QString comment);

private:
    void prepareUi(const int id);
    void keyPressEvent(QKeyEvent *e);

private slots:
    void addRecord();
    void changeRecord();

    void on_btnCancel_clicked();

protected:
    Ui::RecordForm *ui;
};

#endif // RECORDFORM_H
